package serviceImpl;

import dao.AppDao;
import daoImpl.AppDaoImpl;
import service.AppService;

public class AppServiceImpl implements AppService{
	
	

	@Override
	public boolean addUserMoney(int userid, int totalMoney) {
		AppDao ad = new AppDaoImpl();
		return ad.addUserMoney(userid,totalMoney);
	}

	@Override
	public int getUserid(String token) {
		AppDao ad = new AppDaoImpl();
		int userid = ad.getUserid(token);
		return userid;
	}

	@Override
	public int getUserMoney(int userid) {
		AppDao ad = new AppDaoImpl();
		int userMoney = ad.getUserMoney(userid);
		return userMoney;
	}

}
